<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png">
<!--    3.用子-->
<!--    <HelloWorld msg="Welcome to Your Vue.js App"/>-->
<!--    <HelloWorld msg="Welcome to Your Vue.js App"/>-->

    <inputmy :type1="type" :value1="value"></inputmy>
<!--        <input :type="type1" :value="value1">-->

    <div></div>
  </div>
</template>

<script>
// @ is an alias to /src
//1.声子
import HelloWorld from '@/components/HelloWorld.vue'
import son1 from '@/components/son1.vue'

export default {
  name: 'HomeView',
  //2.挂子
  components: {
    HelloWorld,
    // 挂子  挂载子组件 设置组件别名为 inputmy
    inputmy:son1
  },
  data(){
    return {
      type:"password",
      value:"我是文本框的值"
    }
  }
}
</script>
